﻿// JavaScript Document
var index = 1;
var Img = document.getElementById("photos");
var num = 3;
Img.src = "images/photo21.jpg";
function auto_action()
{
    try
    {
		Img.style.filter="revealTrans(transition=4,duration=1);";
		//Img.style.filter="blendTrans(Duration=1)";
　　	Img.filters[0].apply();
　　	Img.filters[0].play();
    }
    catch(e)
    {
    }
	Img.src = "images/photo"+(index+21)+".jpg";
	if(index<num-1)
		index++;
	else
		index = 0;
}
function auto_re()
{
	if(num>1)
		atimer = setInterval("auto_action()",3000);
}
var atimer;
auto_re();
